<?
/***
*    This file is part of Marketorama.
*
*    Marketorama is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*
*    Marketorama is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR *PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License
*    along with Marketorama.  If not, see <http://www.gnu.org/licenses/>.
***/
?>
<div id="main">
    <h1>My Projects</h1>
    <div id="marketlist">
        <? $currentProjectId=0; ?>
        <? $firstline=1; ?>
        <? foreach($query as $row): ?>
            <? if ($firstline!=1 && $currentProjectId!=$row->ProjectId): ?>
                
                    </div>
                </div>
            <? endif ?>
                    
            <? if ($currentProjectId!=$row->ProjectId): ?>
                <? $firstline=0; ?>
                <div class="marketitem">    
                    <div class="text">
                        <div class="marketname">
                            <?php echo($row->ProjectName); ?>
                        </div>
                        <? $currentProjectId=$row->ProjectId; ?>
            <? endif ?>
            <div >
                <?php echo("&nbsp;&nbsp;  ".$row->AppName); ?>
            </div>
        <?php endforeach ?>
        <? if ($firstline!=1): ?>
                    </div>
                </div>
            <? endif ?>
    </div>
</div>

<div id="rightbar">
    
        <h1>Actions</h1>
        <ul class="sidemenu">
        <li><a href="">Create new project</a></li>
        </ul>
            
</div>

